Skip to content

Add 'obsidian' EntrySource to distinguish plugin-imported content#1243

Open
majiayu000 wants to merge 1 commit intokhoj-ai:masterfrom
majiayu000:feature/obsidian-entry-source
Open

Add 'obsidian' EntrySource to distinguish plugin-imported content#1243
majiayu000 wants to merge 1 commit intokhoj-ai:masterfrom
majiayu000:feature/obsidian-entry-source

Conversation

@majiayu000
Copy link

Summary

  • Add OBSIDIAN value to EntrySource enum for content imported via Obsidian plugin
  • Pass file_source parameter through the indexing pipeline:
    • indexer -> configure_content -> text_search.setup -> content processors
  • Detect Obsidian client in the indexer API and set appropriate file_source
  • Update all content processors to accept and propagate file_source parameter

Motivation

This enables users to specifically target Obsidian-imported content for operations like deletion, filtering, or querying without affecting content from other sources (desktop client, manual ingestion, etc.).

Test plan

  • Ruff lint passes
  • Ruff format passes
  • CI tests pass

Fixes #1239

Add granular EntrySource value for content imported via Obsidian plugin:
- Add OBSIDIAN to EntrySource enum
- Pass file_source through indexer -> configure_content -> text_search.setup
- Update all content processors to accept and use file_source parameter
- Detect Obsidian client in indexer and set appropriate file_source

This enables users to specifically target Obsidian-imported content for
operations like deletion, filtering, or querying without affecting
content from other sources.

Fixes khoj-ai#1239

Signed-off-by: majiayu000 <1835304752@qq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add granular 'obsidian' EntrySource to distinguish plugin-imported content from other sources

1 participant